class Test {
    get value() {
        return 10
    }
}

console.log(new Test().value)